/******************************************************************************/
package jamie.org.sil.www.usxUtils;


/******************************************************************************/
/**
 * A base class for elements of a parsed text string.
 *
 * @author ARA "Jamie" Jamieson
**/

public class ParsedTextElementSeparator extends ParsedTextElement
{
  public ParsedTextElementSeparator (String val) { m_Val = val; }
  @Override public int getSeparatorCode () { return m_SeparatorCode; }
  @Override public void setSeparatorCode (int separatorCode) { m_SeparatorCode = separatorCode; }
  
  @Override public String toString (BibleReferenceSupport.Length fullOrAbbreviated,
                                    BibleReferenceSupport.Language englishOrVernacular,
                                    int sepType,
                                    boolean includeDefaultedValues)
  {
    return BibleReferenceSupport.instance().getSeparator(sepType, m_Val, m_SeparatorCode);
  }
  
  private int m_SeparatorCode = -1;
}
